import React from 'react'
import ReactDOM from 'react-dom'
import {HashRouter as Router, Route, Switch} from 'react-router-dom'

// 引入一级路由页面
import Home from './views/Home'
import City from './views/City'
import Center from './views/Home/Center'

// 渲染挂载点
ReactDOM.render(
  <Router>
    <Switch>
      <Route path='/city' component={City}></Route>
      <Route path='/' component={Home}></Route>
    </Switch>
  </Router>,
  document.getElementById('root')
)